package cn.stcnn.start;

import javax.swing.*;
import java.awt.*;

public class Calculator extends JFrame {
    public Calculator() throws HeadlessException {
        this.setTitle("计算器");
        this.setSize(300, 300);
        this.setLayout(new BorderLayout());
        this.setResizable(false);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    }

    public static void main(String[] args) {
        Calculator calculator = new Calculator();
        calculator.setVisible(true);
    }
}
